<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      width: 100%;
      height: 100vh;
      background-color: #333;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .container {
      position: relative;
      min-width: 600px;
      height: 100px;
      font-size: 80px;
      line-height: 100px;
      font-weight: 600;
      color: transparent;
      text-transform: uppercase;
      text-align: center;
    }

    .container>div {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-clip: text;
      -webkit-background-clip: text;
    }

    .back {
      background-color: #666;
    }

    .front {
      background: linear-gradient(60deg, #1abc9c, #fbc531, #9c88ff, #3498db, #fd79a8);
      animation: clip 3s linear infinite alternate;
    }

    @keyframes clip {
      0% {
        clip-path: circle(60px at 0% 50%);
      }

      100% {
        clip-path: circle(60px at 100% 50%);
      }
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="back">wonderful</div>
    <div class="front">wonderful</div>
  </div>
</body>

</html>